package cc.openhome;

/**
 * Created by harry on 17-2-28.
 */
public class Comparision {
    public static void main(String[] args){
        int score = 75;
        System.out.printf("10 > 5 结果 %b%n",10 > 5);
        System.out.printf("10 >= 5 结果 %b%n",10 >= 5);
        System.out.printf("10 < 5 结果 %b%n",10 < 5);
        System.out.printf("10 <= 5 结果 %b%n",10 <= 5);
        System.out.printf("10 == 5 结果 %b%n",10 == 5);
        System.out.printf("10 != 5 结果 %b%n",10 != 5);
        System.out.printf("该生是否及格？%c%n",score >= 60 ? '是' : '否');
        System.out.println(score>70 && score<80);
        System.out.println(score>80 || score<75);
        System.out.println(!(score>80 || score<75));
    }
}
